// #ifndef VUE3
import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
import App from './App.vue'
import * as Pinia from 'pinia'
// 图片懒加载
// #ifdef H5
import lazyPlugin from 'vue3-lazy'
// #endif
export function createApp() {
	const app = createSSRApp(App)
	app.use(Pinia.createPinia())
	// #ifdef H5
	app.use(lazyPlugin, {
		loading: './static/images/common/placeholder.png'
	})
	// #endif
	return {
		app,
		Pinia
	}
}
// #endif
